package com.liang.localdatetime;

import java.time.LocalDateTime;

public class LocalDateTimeDemo4 {
    public static void main(String[] args) {

        LocalDateTime time = LocalDateTime.of(2020, 11, 11, 11, 11, 11);
        LocalDateTime localDateTime = time.withYear(2048);


        LocalDateTime date = LocalDateTime.of(1111, 11, 11, 11, 11, 11);

        LocalDateTime with = time.with(date);
        System.out.println(localDateTime);
        System.out.println(with);

    }
}
